define([],function(){
	var tpl = {};

	tpl.info = function(){
		return info();
	}
	tpl.tab = function(){
		return tab();
	}
	tpl.content = function(){
		return content();
	}

	var info = function(){
		return 	'<script id="tpl_cnbsrDetail_info" type="text/html">'+
				'	 <li>姓名宝宝<span>{{userName}}</span></li>'+
			    '    <li>宝宝月龄<span>{{actualDays}}</span></li>'+
			    '    <li>出生体重<span>{{if birthWeight}}{{birthWeight}}{{else}}未知{{/if}}</span></li>'+
			    '    <li>是否早产<span>{{if prematureDelivery=="Y"}}是{{else if prematureDelivery=="N"}}否{{else}}未知{{/if}}</span></li>'+
			    '    <li>实际年龄<span>{{actualAge}}</span></li>'+
			    
			    '    <li>分娩住院号<span>未知</span></li>'+
			    '    <li>门诊号<span>未知</span></li>'+
			    '    <li>社保卡号<span>未知</span></li>'+
			    '    <li>自管卡号<span>未知</span></li>'+
				'</script>';
	}
	var tab = function(){
		return 	'<script id="tpl_cnbsrDetail_tab" type="text/html">'+
				'	 <li group="prev">《</li>'+
				'	 {{each list as value i}}'+
			    '    	<li data-index="{{value.index}}">{{value.month}}</li>'+
			    '	 {{/each}}'+
			    '    <li group="next">》</li>'+
				'</script>';
	}
	var content = function(){
		return 	'<script id="tpl_cnbsrDetail_content" type="text/html">'+
				'	<table class="cnbsr-table">'+
				'        <thead>'+
				'            <tr>'+
				'			 	{{each title as value i}}'+
				'            		<th class="{{value.className}}">{{value.title}}</th>'+
				'	 		 	{{/each}}'+
				'            </tr>'+
				'        </thead>'+
				'        <tbody>'+
				'			 {{each content as value i}}'+
				'          		<tr>'+
				'            		<td>{{value.title}}</td>'+
				'					{{each value.quest as items j}}'+
				'            			<td>'+
				'							{{each items.quest as item k}}'+
				'								<div class="cnbsr-answer {{item.className}}" style="height:{{items.height}}" id="{{item.id}}">{{item.name}}</div>'+
				'	 		 				{{/each}}'+
				'						</td>'+
				'	 		 		{{/each}}'+
				'          		</tr>'+
				'	 		 {{/each}}'+
				'        </tbody>'+
				'      </table>'+
				'</script>';
	}

	return tpl;
});